package com.ruoyi.vhr.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.vhr.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author whf
 * @since 2024/3/15 18:39
 **/
@RestController
@RequestMapping("employee")
public class EmployeeController {
    @Autowired
    private IEmployeeService employeeService;
    @GetMapping("list")
    public R list(){
        return R.ok(employeeService.list());
    }
}
